package com.slipper.system.collect.bo;

import com.slipper.common.bo.CommonBO;

import java.util.Collections;
import java.util.List;

/**
 * 采集表配置表
 */
public class CollectTableBO extends CommonBO {
    public static final String SYNC_TYPE_ADD = "增量";
    public static final String WRITE_MODE_DW = "删除重写";

    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 任务ID */
    private String taskId;
    /* 来源表 */
    private String originTable;
    /* 目标表 */
    private String targetTable;
    /* 同步类型：全量、增量 */
    private String syncType;
    /* 写入模式：更新、删除重写 */
    private String writeMode;
    /* 读取数量 */
    private Integer readCount;
    /* 增量字段 */
    private String incrementField;
    /* 增量开始时间 */
    private Long incrementStartTime;
    /* 增量结束时间 */
    private Long incrementEndTime;
    /* 来源表主键字段 */
    private String originPrimaryKey;
    /* 目标表主键字段 */
    private String targetPrimaryKey;
    /* 更新人ID */
    private String updateId;
    /* 更新时间 */
    private Long updateTime;
    /* 创建人ID */
    private String createId;
    /* 创建时间 */
    private Long createTime;

    private List<CollectColumnBO> columnList = Collections.emptyList();

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
    
    public String getTaskId() {
        return taskId;
    }

    public void setOriginTable(String originTable) {
        this.originTable = originTable;
    }
    
    public String getOriginTable() {
        return originTable;
    }

    public void setTargetTable(String targetTable) {
        this.targetTable = targetTable;
    }
    
    public String getTargetTable() {
        return targetTable;
    }

    public void setSyncType(String syncType) {
        this.syncType = syncType;
    }
    
    public String getSyncType() {
        return syncType;
    }

    public void setWriteMode(String writeMode) {
        this.writeMode = writeMode;
    }
    
    public String getWriteMode() {
        return writeMode;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }
    
    public Integer getReadCount() {
        return readCount;
    }

    public void setIncrementField(String incrementField) {
        this.incrementField = incrementField;
    }
    
    public String getIncrementField() {
        return incrementField;
    }

    public Long getIncrementStartTime() {
        return incrementStartTime;
    }

    public void setIncrementStartTime(Long incrementStartTime) {
        this.incrementStartTime = incrementStartTime;
    }

    public Long getIncrementEndTime() {
        return incrementEndTime;
    }

    public void setIncrementEndTime(Long incrementEndTime) {
        this.incrementEndTime = incrementEndTime;
    }

    public String getOriginPrimaryKey() {
        return originPrimaryKey;
    }

    public void setOriginPrimaryKey(String originPrimaryKey) {
        this.originPrimaryKey = originPrimaryKey;
    }

    public String getTargetPrimaryKey() {
        return targetPrimaryKey;
    }

    public void setTargetPrimaryKey(String targetPrimaryKey) {
        this.targetPrimaryKey = targetPrimaryKey;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }
    
    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
    
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }
    
    public String getCreateId() {
        return createId;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    
    public Long getCreateTime() {
        return createTime;
    }

    public List<CollectColumnBO> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<CollectColumnBO> columnList) {
        this.columnList = columnList;
    }
}
